package com.ktmall.service;

import com.ktmall.pojo.GoodsItem;
import com.ktmall.vo.PreOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 猜你喜欢和商品分类相关Service接口
 */
public interface GoodsItemService {
    public List<GoodsItem> getGoodsListPage(@Param("pageNo") Integer pageNo,
                                            @Param("pageSize") Integer pageSize);

    public int count();

    List<GoodsItem> getGoodsByCategoryId(Integer categoryId);

    public GoodsItem findById(Integer id);

    PreOrder buyNow(Integer userId,Integer skuId,Integer goodsCount);
}
